package com.jinzecloud.reportapproval.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinzecloud.reportapproval.bean.SampleDetails;
import com.jinzecloud.reportapproval.dto.AuditParam;
import com.jinzecloud.reportapproval.dto.DataStagingParam;
import com.jinzecloud.reportapproval.bean.SampleSheet;
import com.jinzecloud.reportapproval.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 验样/抽样单
 *
 * @author æ­å°
 * @email 1971240051@qq.com
 * @date 2024-12-03 16:18:45
 */
public interface SampleSheetService extends IService<SampleSheet> {

    /**
     * 查询审核列表
     * @param param
     * @return
     */
    IPage<SampleSheet> auditList(DataStagingParam param);

    /**
     * 审核
     * @param auditParam
     * @return
     */
    R audit(AuditParam auditParam);

    String getReportFilePath(String id, HttpServletRequest request);

    String viewPdf(Integer id);

    R saveSampleSheet(SampleSheet sampleSheet);

    List<SampleDetails> getProductNumber(String projectNumber);

    String viewWord(Integer id);
}

